<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素消失方式</title>
    <style>
        div {
            width: 100px;
            height: 100px;
        }

        .d1 {
            background-color: lightgreen;
        }

        .d1:hover {
            transform: scale(0)/*缩放到看不见*/
        }

        .d2 {
            background-color: lightpink;
        }

        .d2:hover {
            display: none/*显示模式为不可见*/
        }

        .d3 {
            background-color: lightsalmon;
        }

        .d3:hover {
            opacity: 0/*透明度为0*/
        }

        .d4 {
            background-color: lightcoral;
        }
    </style>
</head>
<body>
<div class="d1">11</div>
<div class="d2">22</div>
<div class="d3">33</div>
<div class="d4">44</div>
</body>
</html>